import request from '/@/utils/request';


// 获取报价单的列表
export function quoteList(data){
	return request({
		url: `/api/quote/list`,
        method: 'post',
        data: data
	});
}

// 获取用户信息
export function quoteGet(file) {
	return request({
	  url: `/api/quote/get/${file}`,
	  method: "get",
	//   params: file,
	});
  }
  
// 
export function quoteEdit(data){
	return request({
		url: `/api/quote/edit`,
        method: 'post',
        data: data
	});
}
// 
export function shipmentList(data){
	return request({
		url: `/api/shipment/list`,
        method: 'post',
        data: data
	});
}

// 新增
export function shipmentAdd(data){
	return request({
		url: `/api/shipment/add`,
        method: 'post',
        data: data
	});
}

export function shipmentEdit(data){
	return request({
		url: `/api/shipment/edit`,
        method: 'post',
        data: data
	});
}
// 
export function localMessageList(data){
	return request({
		url: `/api/localMessage/list`,
        method: 'post',
        data: data
	});
}
export function localMessageGet(file) {
	return request({
	  url: `/api/localMessage/get/${file}`,
	  method: "get",
	//   params: file,
	});
  }
//   
export function purchaseOrderList(data){
	return request({
		url: `/api/purchaseOrder/list`,
        method: 'post',
        data: data
	});
}

export function getDtlListByOrderId(file) {
	return request({
	  url: `/api/purchaseOrder/getDtlListByOrderId/${file}`,
	  method: "get",
	});
  }
//   删除 /{id}

export function shipmentDelete(file) {
	return request({
	  url: `/api/shipment/delete/${file}`,
	  method: "get",
	});
  }
//   /api/shipment/get/{id}
export function shipmentDetail(file) {
	return request({
	  url: `/api/shipment/get/${file}`,
	  method: "get",
	});
  }
//   
export function shipmentTransportMode(file) {
	return request({
	  url: `/api/dict/shipment/transportMode`,
	  method: "get",
	});
  }